Widget Utilities
Type
module
Summary
A library of utility handlers for functions commonly needed by widgets.
Description
A library of utility handlers for functions commonly needed by widgets.
Children Properties
Handler
Name | Summary | Syntax |
---|---|---|
colorToString | Converts a color to a string representing the color | colorToString(<pColor>,<pIncludeAlpha>) |
stringToColor | Converts a string to a color | stringToColor(<pString>) |
intToString | Formats an integer as a string | intToString(<pNumber>) |
placeholderIcon | Returns a placeholder icon for a given operating system | placeholderIcon(<pOS>) |
stripZeros | Removes any superfluous zeros and decimal places. | stripZeros(<pString>) |
constrainPathToRect | Scales and translates a path to fit within a rectangle | constrainPathToRect(<pTargetRect>,<xPath>) |
getNativeThemeName | Get the canonical name of the current "native" mobile theme | getNativeThemeName() |
paintPlaceholderImage | Paint a placeholder image using an SVG icon and name | paintPlaceholderImage(<pCanvas>,<pBounds>,<pSVGIcon>,<pLabel>,<pFont>,<pColor>) |